<template>
  <div>
    <div v-html="markdownToHtml"></div>
  </div>
</template>

<script>
import marked from 'marked'

export default {
  name: 'MdView',
  props: {
    sqlSuggest: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      markdown: ''
    }
  },
  computed: {
    markdownToHtml() {
      return marked(this.sqlSuggest)
    }
  }
}
</script>

<style scoped>
</style>
